﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.UI.Models.CreateWorkflowModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create Workflow
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%using(Html.BeginForm()) { %>
    <div class="formItem">
        <label>Name:</label>
        <%=Html.TextBoxFor(m => m.Request.Name) %><br />
        <%=Html.ValidationMessageFor(m => m.Request.Name) %>
    </div>

    <div class="formItem">
        <label>Invoke on HTTP Method:</label>
        <%=Html.DropDownListFor(m => m.Request.InvokeOnHttpMethod, this.Model.GetHttpMethodSelectList(), "-- None --") %>
    </div>

    <div class="formItem">
        <label>Invoke on Page Event:</label>
        <%=Html.DropDownListFor(m => m.Request.InvokeOnPageEvent, this.Model.GetPageEventsSelectList(), "-- None --") %>
    </div>

    <%=Html.FormButtons(u =>
    {
        u.Submit("save", "Save");
        u.Submit("cancel", "Cancel");
    })%>
<%} %>
</asp:Content>
